<template>
  <div>
    <Header></Header>
    <!-- 减少请求的发送次数 -->
    <!-- <keep-alive> -->
    <router-view></router-view>
    <!-- </keep-alive> -->
    <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
export default {
  name: "App",
  mounted() {
    this.$store.dispatch("categoryList");
  },
};
</script>

<style>
</style>